import TempalteTest from './TempalteTest'
import BaiduMap from './BaiduMap'
import MyBread from './MyBread'
import SvgIcon from './SvgIcon'

const req = require.context('@/icons/svg', false, /\.svg$/)
const requireAll = requireContext => requireContext.keys().map(requireContext)
requireAll(req)

export default {
  install (vue) {
    vue.component(TempalteTest.name, TempalteTest)
    vue.component('BaiduMap', BaiduMap)
    vue.component(MyBread.name, MyBread)
    vue.component(SvgIcon.name, SvgIcon)
  }
}
